#include "macrocommand.h"

MacroCommand::MacroCommand(QVector<Command *> commands)
    : m_commands(commands)
{
}

void MacroCommand::execute()
{
    for (auto &command : m_commands)
    {
        command->execute();
    }
}

void MacroCommand::undo()
{
    for (auto &command : m_commands)
    {
        command->undo();
    }
}
